#include <cstdio>
int main()
{
    int t,sum=0;
    while ( scanf("%d",&t)0 && t!=0 )
    {
        while (t--)
        {
            scanf()
        }
    }
    return 0;
}
